file(GLOB SOURCE *.c)
if (NOT(MSVC))
    add_library(libwine SHARED ${SOURCE})
    string(APPEND CMAKE_CXX_FLAGS " -export-all-symbols")
else()
    add_library(libwine SHARED ${SOURCE} wine.def)
endif()

add_definitions(-D_X86_ -D__i386__ -D__WINESRC__)
target_link_libraries(libwine shlwapi.lib)
set_target_properties(libwine PROPERTIES PREFIX "")
